/*
 * $Id: BaseModel.java 136 2009-07-16 07:53:43Z donbeave $
 */

package labour.concept.client.data;

@SuppressWarnings("serial")
public abstract class BaseModel extends com.extjs.gxt.ui.client.data.BaseModel {

  public static final String UID = "UID";

  public BaseModel() {
    set(UID, getUId());
  }

  public String getUId() {
    if (get(UID) != null) {
      return get(UID);
    }
    return toString();
  }

  public abstract Boolean isExist();

}
